package org.yogurtcat.server.modules.storage.service;

import java.util.List;
import java.util.Optional;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.yogurtcat.server.common.storage.domain.Storage;
import org.yogurtcat.server.modules.storage.domain.StorageVO;

public interface StorageService {
	
	Page<Storage> list(Optional<StorageVO> condition, Pageable pageable);

	Storage save(StorageVO data);

	void delete(StorageVO data);

	Storage findById(Long id);
	
	/**
	 * 查询符合条件的上传方式
	 */
	Storage findByBusinessType(String businessType);
	
	/**
	 * 查询所有
	 */
	List<Storage> findAll();
}
